<template>
	<view>
		<view class="noCommodity">
			<uni-icons type="gear-filled" size="60" color='#ccc'></uni-icons>
			<p>还在完善中~</p>
			<div class="gohome" @tap="gohome">去逛逛</div>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {
			this.getUserProfile()
		},
		methods: {
			getUserProfile(e) {
				// 推荐使用wx.getUserProfile获取用户信息，开发者每次通过该接口获取用户个人信息均需用户确认
				// 开发者妥善保管用户快速填写的头像昵称，避免重复弹窗
				wx.getUserProfile({
					desc: '用于完善会员资料', // 声明获取用户个人信息后的用途，后续会展示在弹窗中，请谨慎填写
					success: (res) => {
						console.log(res)
					}
				})
			},
			gohome() {
				uni.switchTab({
					url: `/pages/index/index`
				})
			},
		}
	}
</script>

<style scoped lang="scss">
	.noCommodity {
		position: absolute;
		width: 400rpx;
		height: 300rpx;
		left: 50%;
		top: 45%;
		transform: translate(-50%, -50%);
		text-align: center;
		color: #ccc;

		.gohome {
			border: 1px solid #17D46B;
			border-radius: 40rpx;
			width: 300rpx;
			height: 80rpx;
			line-height: 80rpx;
			margin: 30rpx auto 0;
			color: #17D46B;
			font-weight: bold;
		}
	}
</style>